package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmNewsDTO;
import com.heima.model.wemedia.dtos.WmNewsPageReqDTO;
import com.heima.model.wemedia.pojos.WmNews;

public interface WmNewsService extends IService<WmNews> {
    PageResponseResult findList(WmNewsPageReqDTO wmNewsPageReqDTO);

    ResponseResult submitNews(WmNewsDTO dto);

    ResponseResult findWmNewsById(Integer id);

    ResponseResult deleteNewById(Integer id);

    ResponseResult downOrUp(WmNewsDTO dto);
}
